package cn.zjgsu.mapping;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.zjgsu.domain.TbTeacher;

public interface TbTeacherMapper {

	long getCount();

	List<TbTeacher> selectByPage(@Param(value="startPos") Integer startPos,@Param(value="pageSize") Integer pageSize);

	void insertSelective(TbTeacher teacher);

	void deleteByPrimaryKey(long pkTeacher);

	void updateTeacherPwd(long pkTeacher);

	TbTeacher selectByPrimaryKey(long pkTeacher);
	
	int updateByPrimaryKeySelective(TbTeacher teacher);

	List<TbTeacher> searchByTeacherNum(@Param(value="teacherNum") String teacherNum);

	List<TbTeacher> searchByTeacherName(@Param(value="teacherName") String teacherName);

	TbTeacher selectByForeignKey(@Param(value="fkUser")long fkUser);
	
	TbTeacher selectByTeacherNum(@Param(value="teacherNum")String teacherNum);



}
